package com.ruoyi.project.cms.content.domain;

import java.util.Date;
import java.util.Objects;

public class Content {
    private Long prId;//公告内容id
    private Long typeId;//公告类别id
    private String prContent;//公告主题
    private String prTheme;//公告内容
    private String userName;//发布人
    private Date releaseTime;//发布时间
    private String typeName;//

    public Content() {
    }

    @Override
    public String toString() {
        return "Content{" +
                "prId=" + prId +
                ", typeId=" + typeId +
                ", prContent='" + prContent + '\'' +
                ", prTheme='" + prTheme + '\'' +
                ", userName='" + userName + '\'' +
                ", releaseTime=" + releaseTime +
                ", typeName='" + typeName + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Content content = (Content) o;
        return Objects.equals(prId, content.prId) &&
                Objects.equals(typeId, content.typeId) &&
                Objects.equals(prContent, content.prContent) &&
                Objects.equals(prTheme, content.prTheme) &&
                Objects.equals(userName, content.userName) &&
                Objects.equals(releaseTime, content.releaseTime) &&
                Objects.equals(typeName, content.typeName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(prId, typeId, prContent, prTheme, userName, releaseTime, typeName);
    }

    public Long getPrId() {
        return prId;
    }

    public void setPrId(Long prId) {
        this.prId = prId;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public String getPrContent() {
        return prContent;
    }

    public void setPrContent(String prContent) {
        this.prContent = prContent;
    }

    public String getPrTheme() {
        return prTheme;
    }

    public void setPrTheme(String prTheme) {
        this.prTheme = prTheme;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Date getReleaseTime() {
        return releaseTime;
    }

    public void setReleaseTime(Date releaseTime) {
        this.releaseTime = releaseTime;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Content(Long prId, Long typeId, String prContent, String prTheme, String userName, Date releaseTime, String typeName) {
        this.prId = prId;
        this.typeId = typeId;
        this.prContent = prContent;
        this.prTheme = prTheme;
        this.userName = userName;
        this.releaseTime = releaseTime;
        this.typeName = typeName;
    }
}